home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / getting there / WWW / MacHTTP 1.3.1b16 / search_script.cgi (text-only) < prev   
Text File  |  1994-07-26  |  718b  |  16 lines

  1. --this script should be compiled and saved as an application before running
  2.  
  3. on «event WWWΩsdoc» path_args ¬
  4.     given «class kfor»:http_search_args, «class post»:post_args, «class meth»:method, «class addr»:client_address, «class user»:username, «class pass»:password
  5.     --This is WEIRD syntax. What it really means is that you have the variables
  6.     -- path_args, http_search_args, client_address, username, and password to play with.
  7.     -- They are all strings.
  8.     
  9.     return "You sent: path:" & path_args & ¬
  10.         "<br>search:" & http_search_args & ¬
  11.         "<br>post_args:" & post_args & ¬
  12.         "<br>method:" & method & ¬
  13.         "<br>address:" & client_address & ¬
  14.         "<br>user:" & username & ¬
  15.         "<br>password:" & password
  16. end «event WWWΩsdoc»